/**
 * @file ebex_genetic_stats.h
 *
 * @date Oct 21, 2011
 * @author seth
 *
 * @brief This file is part of EBEX State Estimator, created for the EBEX project
 *
 * This software is copyright (C) 2011 Columbia University
 *
 * EBEX State Estimator is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * EBEX State Estimator is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with EBEX State Estimator; if not, write to the Free Software Foundation, Inc.,
 * 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 */

#ifndef EBEX_GENETIC_STATS_H_
#define EBEX_GENETIC_STATS_H_

#include <stdbool.h>
#include <ebex_genetic.h>

bool genetic_allele_double_statistics(population_t *m_pop, int m_chromosome, int m_allele, double *m_max, double *m_min, double *m_mean, double *m_median,
		double *m_var, double *m_stddev, double *m_kurtosis, double *m_skew);
bool genetic_allele_quaternion_statistics(population_t *m_pop, int m_chromosome, int m_allele, double *m_max, double *m_min, double *m_mean, double *m_median,
		double *m_var, double *m_stddev, double *m_kurtosis, double *m_skew);
bool genetic_fitness_statistics(population_t *m_pop, double *m_max, double *m_min, double *m_mean, double *m_median,
		double *m_var, double *m_stddev, double *m_kurtosis, double *m_skew);

double genetic_allele_mean_double(population_t *m_pop, size_t m_chromosome, size_t m_allele, size_t m_size);
void genetic_allele_mean_quaternion(population_t *m_pop, size_t m_chromosome, size_t m_allele, ebex_quat_t *m_mean, size_t m_size);
#endif /* EBEX_GENETIC_STATS_H_ */
